package ch.bfh.abhmcm.SoftwareEngineeringAndDesign.view.mainframe.authorizeRFCPanel;

import java.awt.BorderLayout;

import ch.bfh.abhmcm.SoftwareEngineeringAndDesign.view.mainframe.Mainframe;
import ch.bfh.abhmcm.SoftwareEngineeringAndDesign.view.mainframe.SimpleCMSPanel;
import ch.bfh.abhmcm.SoftwareEngineeringAndDesign.view.mainframe.authorizeRFCPanel.authorizeRFCPanelSubs.AuthorizeRFCFunctionPanel;
import ch.bfh.abhmcm.SoftwareEngineeringAndDesign.view.mainframe.authorizeRFCPanel.authorizeRFCPanelSubs.AuthorizeRFCListPanel;

public class AuthorizeRFCPanel extends SimpleCMSPanel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private AuthorizeRFCFunctionPanel functionPanel;
	private AuthorizeRFCListPanel listPanel;
	private Mainframe mainframe;

	public AuthorizeRFCPanel(String name, Mainframe parent) {
		super(name, parent);
		this.mainframe = parent;

		this.setLayout(new BorderLayout());

		this.functionPanel = new AuthorizeRFCFunctionPanel(this);
		this.listPanel = new AuthorizeRFCListPanel(this);

		this.add(functionPanel, BorderLayout.EAST);
		this.add(listPanel, BorderLayout.CENTER);

	}

	public Mainframe getMainframe() {
		return mainframe;
	}

	public AuthorizeRFCFunctionPanel getFunctionPanel() {
		return functionPanel;
	}

	public AuthorizeRFCListPanel getListPanel() {
		return listPanel;
	}

}
